<?php

class phone extends goods{
    public function getname(){
        echo $this->name,'<br>';
    }
}
?>